import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/css/global.css'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
// 统一导入el-icon图标
import * as ElIconModules from '@element-plus/icons'
import * as echarts from 'echarts'
const app = createApp(App)
// 统一注册el-icon图标
for(let iconName in ElIconModules){
    app.component(iconName,ElIconModules[iconName])
}
app.use(store).use(router).use(ElementPlus,{locale, size: 'small'}).mount('#app')
app.echarts = echarts